<?php

namespace App\Containers\AppSection\Settings\Actions;

use App\Containers\AppSection\Settings\Tasks\FindSettingByKeyTask;
use App\Ship\Parents\Actions\Action;
use App\Ship\Parents\Requests\Request;

class GetSettingAction extends Action
{
    public function run($key, Request $request)
    {
        return app(FindSettingByKeyTask::class)->addRequestCriteria()->run($key);
    }
}
